/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.juani.test.service.persistence;

import com.juani.test.model.Client;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import java.util.List;

/**
 * The persistence utility for the client service. This utility wraps {@link ClientPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Juan Martin Ruiz
 * @see ClientPersistence
 * @see ClientPersistenceImpl
 * @generated
 */
public class ClientUtil {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(Client client) {
		getPersistence().clearCache(client);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<Client> findWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<Client> findWithDynamicQuery(DynamicQuery dynamicQuery,
		int start, int end) throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<Client> findWithDynamicQuery(DynamicQuery dynamicQuery,
		int start, int end, OrderByComparator orderByComparator)
		throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
	 */
	public static Client update(Client client, boolean merge)
		throws SystemException {
		return getPersistence().update(client, merge);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
	 */
	public static Client update(Client client, boolean merge,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence().update(client, merge, serviceContext);
	}

	/**
	* Caches the client in the entity cache if it is enabled.
	*
	* @param client the client
	*/
	public static void cacheResult(com.juani.test.model.Client client) {
		getPersistence().cacheResult(client);
	}

	/**
	* Caches the clients in the entity cache if it is enabled.
	*
	* @param clients the clients
	*/
	public static void cacheResult(
		java.util.List<com.juani.test.model.Client> clients) {
		getPersistence().cacheResult(clients);
	}

	/**
	* Creates a new client with the primary key. Does not add the client to the database.
	*
	* @param clientId the primary key for the new client
	* @return the new client
	*/
	public static com.juani.test.model.Client create(long clientId) {
		return getPersistence().create(clientId);
	}

	/**
	* Removes the client with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param clientId the primary key of the client
	* @return the client that was removed
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client remove(long clientId)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().remove(clientId);
	}

	public static com.juani.test.model.Client updateImpl(
		com.juani.test.model.Client client, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(client, merge);
	}

	/**
	* Returns the client with the primary key or throws a {@link com.juani.test.NoSuchClientException} if it could not be found.
	*
	* @param clientId the primary key of the client
	* @return the client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByPrimaryKey(long clientId)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByPrimaryKey(clientId);
	}

	/**
	* Returns the client with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param clientId the primary key of the client
	* @return the client, or <code>null</code> if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByPrimaryKey(long clientId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(clientId);
	}

	/**
	* Returns all the clients where firstName = &#63;.
	*
	* @param firstName the first name
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByFirstName(
		java.lang.String firstName)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByFirstName(firstName);
	}

	/**
	* Returns a range of all the clients where firstName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param firstName the first name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByFirstName(
		java.lang.String firstName, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByFirstName(firstName, start, end);
	}

	/**
	* Returns an ordered range of all the clients where firstName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param firstName the first name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByFirstName(
		java.lang.String firstName, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByFirstName(firstName, start, end, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByFirstName_First(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByFirstName_First(firstName, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByFirstName_First(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByFirstName_First(firstName, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByFirstName_Last(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByFirstName_Last(firstName, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where firstName = &#63;.
	*
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByFirstName_Last(
		java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByFirstName_Last(firstName, orderByComparator);
	}

	/**
	* Returns the clients before and after the current client in the ordered set where firstName = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param firstName the first name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client[] findByFirstName_PrevAndNext(
		long clientId, java.lang.String firstName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByFirstName_PrevAndNext(clientId, firstName,
			orderByComparator);
	}

	/**
	* Returns all the clients where lastName = &#63;.
	*
	* @param lastName the last name
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByLastName(
		java.lang.String lastName)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByLastName(lastName);
	}

	/**
	* Returns a range of all the clients where lastName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param lastName the last name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByLastName(
		java.lang.String lastName, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByLastName(lastName, start, end);
	}

	/**
	* Returns an ordered range of all the clients where lastName = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param lastName the last name
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByLastName(
		java.lang.String lastName, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByLastName(lastName, start, end, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByLastName_First(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByLastName_First(lastName, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByLastName_First(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .fetchByLastName_First(lastName, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByLastName_Last(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByLastName_Last(lastName, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where lastName = &#63;.
	*
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByLastName_Last(
		java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByLastName_Last(lastName, orderByComparator);
	}

	/**
	* Returns the clients before and after the current client in the ordered set where lastName = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param lastName the last name
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client[] findByLastName_PrevAndNext(
		long clientId, java.lang.String lastName,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByLastName_PrevAndNext(clientId, lastName,
			orderByComparator);
	}

	/**
	* Returns all the clients where email = &#63;.
	*
	* @param email the email
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByEmail(
		java.lang.String email)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEmail(email);
	}

	/**
	* Returns a range of all the clients where email = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param email the email
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByEmail(
		java.lang.String email, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEmail(email, start, end);
	}

	/**
	* Returns an ordered range of all the clients where email = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param email the email
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByEmail(
		java.lang.String email, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEmail(email, start, end, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByEmail_First(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEmail_First(email, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByEmail_First(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByEmail_First(email, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByEmail_Last(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByEmail_Last(email, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where email = &#63;.
	*
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByEmail_Last(
		java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByEmail_Last(email, orderByComparator);
	}

	/**
	* Returns the clients before and after the current client in the ordered set where email = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param email the email
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client[] findByEmail_PrevAndNext(
		long clientId, java.lang.String email,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByEmail_PrevAndNext(clientId, email, orderByComparator);
	}

	/**
	* Returns all the clients where phone = &#63;.
	*
	* @param phone the phone
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByPhone(
		java.lang.String phone)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByPhone(phone);
	}

	/**
	* Returns a range of all the clients where phone = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param phone the phone
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByPhone(
		java.lang.String phone, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByPhone(phone, start, end);
	}

	/**
	* Returns an ordered range of all the clients where phone = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param phone the phone
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByPhone(
		java.lang.String phone, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByPhone(phone, start, end, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByPhone_First(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByPhone_First(phone, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByPhone_First(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPhone_First(phone, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByPhone_Last(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByPhone_Last(phone, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where phone = &#63;.
	*
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByPhone_Last(
		java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPhone_Last(phone, orderByComparator);
	}

	/**
	* Returns the clients before and after the current client in the ordered set where phone = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param phone the phone
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client[] findByPhone_PrevAndNext(
		long clientId, java.lang.String phone,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByPhone_PrevAndNext(clientId, phone, orderByComparator);
	}

	/**
	* Returns all the clients where movil = &#63;.
	*
	* @param movil the movil
	* @return the matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByMovil(
		java.lang.String movil)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByMovil(movil);
	}

	/**
	* Returns a range of all the clients where movil = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param movil the movil
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByMovil(
		java.lang.String movil, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByMovil(movil, start, end);
	}

	/**
	* Returns an ordered range of all the clients where movil = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param movil the movil
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findByMovil(
		java.lang.String movil, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByMovil(movil, start, end, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByMovil_First(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByMovil_First(movil, orderByComparator);
	}

	/**
	* Returns the first client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByMovil_First(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByMovil_First(movil, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client
	* @throws com.juani.test.NoSuchClientException if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client findByMovil_Last(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByMovil_Last(movil, orderByComparator);
	}

	/**
	* Returns the last client in the ordered set where movil = &#63;.
	*
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching client, or <code>null</code> if a matching client could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client fetchByMovil_Last(
		java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByMovil_Last(movil, orderByComparator);
	}

	/**
	* Returns the clients before and after the current client in the ordered set where movil = &#63;.
	*
	* @param clientId the primary key of the current client
	* @param movil the movil
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next client
	* @throws com.juani.test.NoSuchClientException if a client with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static com.juani.test.model.Client[] findByMovil_PrevAndNext(
		long clientId, java.lang.String movil,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.juani.test.NoSuchClientException,
			com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByMovil_PrevAndNext(clientId, movil, orderByComparator);
	}

	/**
	* Returns all the clients.
	*
	* @return the clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Returns a range of all the clients.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @return the range of clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Returns an ordered range of all the clients.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of clients
	* @param end the upper bound of the range of clients (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of clients
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<com.juani.test.model.Client> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes all the clients where firstName = &#63; from the database.
	*
	* @param firstName the first name
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByFirstName(java.lang.String firstName)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByFirstName(firstName);
	}

	/**
	* Removes all the clients where lastName = &#63; from the database.
	*
	* @param lastName the last name
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByLastName(java.lang.String lastName)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByLastName(lastName);
	}

	/**
	* Removes all the clients where email = &#63; from the database.
	*
	* @param email the email
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByEmail(java.lang.String email)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByEmail(email);
	}

	/**
	* Removes all the clients where phone = &#63; from the database.
	*
	* @param phone the phone
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByPhone(java.lang.String phone)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByPhone(phone);
	}

	/**
	* Removes all the clients where movil = &#63; from the database.
	*
	* @param movil the movil
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByMovil(java.lang.String movil)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByMovil(movil);
	}

	/**
	* Removes all the clients from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Returns the number of clients where firstName = &#63;.
	*
	* @param firstName the first name
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static int countByFirstName(java.lang.String firstName)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByFirstName(firstName);
	}

	/**
	* Returns the number of clients where lastName = &#63;.
	*
	* @param lastName the last name
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static int countByLastName(java.lang.String lastName)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByLastName(lastName);
	}

	/**
	* Returns the number of clients where email = &#63;.
	*
	* @param email the email
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static int countByEmail(java.lang.String email)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByEmail(email);
	}

	/**
	* Returns the number of clients where phone = &#63;.
	*
	* @param phone the phone
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static int countByPhone(java.lang.String phone)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByPhone(phone);
	}

	/**
	* Returns the number of clients where movil = &#63;.
	*
	* @param movil the movil
	* @return the number of matching clients
	* @throws SystemException if a system exception occurred
	*/
	public static int countByMovil(java.lang.String movil)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByMovil(movil);
	}

	/**
	* Returns the number of clients.
	*
	* @return the number of clients
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	public static ClientPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (ClientPersistence)PortletBeanLocatorUtil.locate(com.juani.test.service.ClpSerializer.getServletContextName(),
					ClientPersistence.class.getName());

			ReferenceRegistry.registerReference(ClientUtil.class, "_persistence");
		}

		return _persistence;
	}

	/**
	 * @deprecated
	 */
	public void setPersistence(ClientPersistence persistence) {
	}

	private static ClientPersistence _persistence;
}